<template>
  <div>
    <!-- 各种资料 -->
    <!-- 内容 -->

    <div class="article-body warp">
      <div class="article-sub-nav pt-10">
        <div class="sub-nav-item con">
          <span class="con"> 推荐 </span>
        </div>

        <div class="sub-nav-item">
          <span class=""> 高中英语 </span>
        </div>

        <div class="sub-nav-item">
          <span class=""> 高中语文 </span>
        </div>

        <div class="sub-nav-item">
          <span class=""> 高中数学 </span>
        </div>

        <div class="sub-nav-item">
          <span class=""> 初中英语 </span>
        </div>

        <div class="sub-nav-item">
          <span class=""> 初中语文 </span>
        </div>

        <div class="sub-nav-item">
          <span class=""> 初中数学 </span>
        </div>
      </div>
      <div class="article-list">
        <div class="bg-white givebt">
          <div>
            <router-link to="/materials/math" tag="div" class="article-item">
              <img
                src="https://img.yixuela.com/1665060891000556.jpg?imageView2/1/w/120/h/80/interlace/1"
                alt="初中数学必须掌握的有理数基础知识"
              />
              <div class="article-info">
                <p class="item-title">
                  <span class="text">初中数学必须掌握的有理数基础知</span>
                </p>
                <p class="article-footer">
                  <span class="article-tab">知识点总结</span>

                  <span>2022-10-06</span>
                  <span><i class="iconfont icon-view"></i> 111</span>
                </p>
              </div>
            </router-link>
          </div>

          <div>
            <router-link to="/materials/math" tag="div" class="article-item">
              <img
                src="https://img.yixuela.com/1665060891000556.jpg?imageView2/1/w/120/h/80/interlace/1"
                alt="初中数学必须掌握的有理数基础知识"
              />
              <div class="article-info">
                <p class="item-title">
                  <span class="text">初中数学必须掌握的有理数基础知</span>
                </p>
                <p class="article-footer">
                  <span class="article-tab">知识点总结</span>

                  <span>2022-10-06</span>
                  <span><i class="iconfont icon-view"></i> 111</span>
                </p>
              </div>
            </router-link>
          </div>

          <div>
            <router-link to="/materials/math" tag="div" class="article-item">
              <img
                src="https://img.yixuela.com/1665060891000556.jpg?imageView2/1/w/120/h/80/interlace/1"
                alt="初中数学必须掌握的有理数基础知识"
              />
              <div class="article-info">
                <p class="item-title">
                  <span class="text">初中数学必须掌握的有理数基础知</span>
                </p>
                <p class="article-footer">
                  <span class="article-tab">知识点总结</span>

                  <span>2022-10-06</span>
                  <span><i class="iconfont icon-view"></i> 111</span>
                </p>
              </div>
            </router-link>
          </div>
        </div>

        <ul class="app-pagination">
          <li>
            <a href="" class=""> 首页 </a>
          </li>
          <li>
            <a href="" class=""> 上一页 </a>
          </li>
          <li class="active">
            <a href="" class=""> 1 </a>
          </li>
          <li class="">
            <a href="" class=""> 2 </a>
          </li>
          <li class="">
            <a href="" class=""> 3 </a>
          </li>
          <li class="">
            <a href="" class=""> 4 </a>
          </li>
          <li class="">
            <a href="" class=""> 5 </a>
          </li>
          <li>
            <a href="" class=""> 下一页 </a>
          </li>
          <li>
            <a href="" class=""> 尾页 </a>
          </li>
          <li class="total">
            <span href="">共 9999 条</span>
          </li>
        </ul>
      </div>
      <div class="article-right">
        <div class="bg-white default-border">
          <div class="jd-ad">
            <div class="ads-info"></div>
          </div>
        </div>
        <div class="article-newask bg-white default-border pad-20 mt-20">
          <div class="article-newask-title">
            <p>热门文章</p>
          </div>
          <div class="line"></div>
          <div class="article-newask-list mt-10">
            <div class="list-item">
              <a href="" class=""
                ><img
                  src="https://img.yixuela.com/no-img.png"
                  alt="人教版高中英语单词表必修一"
              /></a>
              <div class="article-newask-flex">
                <p class="article-newask-list-title">
                  <span class="text"> 人教版高中英语单词表必修一 </span>
                </p>
                <p class="article-newask-list-footer">
                  <span>2017-11-18</span>
                  <span><i class="iconfont icon-view"></i> 314201</span>
                </p>
              </div>
            </div>
            <div class="list-item">
              <a href="" class=""
                ><img
                  src="https://img.yixuela.com/no-img.png"
                  alt="人教版高中英语单词表必修一"
              /></a>
              <div class="article-newask-flex">
                <p class="article-newask-list-title">
                  <span class="text"> 人教版高中英语单词表必修一 </span>
                </p>
                <p class="article-newask-list-footer">
                  <span>2017-11-18</span>
                  <span><i class="iconfont icon-view"></i> 314201</span>
                </p>
              </div>
            </div>
            <div class="list-item">
              <a href="" class=""
                ><img
                  src="https://img.yixuela.com/no-img.png"
                  alt="人教版高中英语单词表必修一"
              /></a>
              <div class="article-newask-flex">
                <p class="article-newask-list-title">
                  <span class="text"> 人教版高中英语单词表必修一 </span>
                </p>
                <p class="article-newask-list-footer">
                  <span>2017-11-18</span>
                  <span><i class="iconfont icon-view"></i> 314201</span>
                </p>
              </div>
            </div>
            <div class="list-item">
              <a href="" class=""
                ><img
                  src="https://img.yixuela.com/no-img.png"
                  alt="人教版高中英语单词表必修一"
              /></a>
              <div class="article-newask-flex">
                <p class="article-newask-list-title">
                  <span class="text"> 人教版高中英语单词表必修一 </span>
                </p>
                <p class="article-newask-list-footer">
                  <span>2017-11-18</span>
                  <span><i class="iconfont icon-view"></i> 314201</span>
                </p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 内容 END-->
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.bg-white {
  background: #fff;
}
.default-border {
  border-radius: 6px;
}
.mt-20 {
  margin-top: 20px;
}
.pad-20 {
  padding: 20px;
}
.pt-10 {
  padding-top: 10px;
}
.article-body {
  display: flex;
  .article-sub-nav {
    width: 104px;
    height: 300px;
    background: #fff;
    box-shadow: 0 0 24px 0 rgb(0 0 0 / 6%);
    border-radius: 6px;
    margin-top: 40px;
  }
  .article-list {
    margin: 50px 24px 0px;
    width: 686px;
    .givebt{
      margin-bottom: 100px;
    }
    .article-item {
      color: #333;
      border-bottom: 1px solid #eee;
      padding: 15px;
      display: flex;
      img {
        width: 120px;
        height: 81px;
        border-radius: 6px;
      }
      .article-info {
        margin-left: 15px;
        flex: 1;
      }
      .item-title {
        padding: 10px 0;
        font-size: 16px;
        font-weight: 600;
        line-height: 22px;
        display: flex;
        align-items: flex-start;
        .text {
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          display: inline-block;
        }
      }
      .article-footer {
        font-size: 12px;
        font-weight: 400;
        color: #999;
        line-height: 17px;
        display: flex;
        align-items: center;
        padding-right: 20px;
        .article-tab {
          background: #f8f8f9;
          border-radius: 10px;
          padding: 2px 11px;
          color: #999;
        }
        span {
          margin-right: 30px;
        }
      }
    }
  }
  .article-right {
    width: 320px;
    margin-top: 10px;
    .article-newask {
      margin-bottom: 125px;
      .article-newask-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 16px;
      }
      .article-newask-list {
        .list-item {
          width: 100%;
          display: flex;
          font-size: 14px;
          font-weight: 400;
          color: #666;
          line-height: 20px;
          margin-bottom: 20px;
        }
      }
    }
  }
}
.active-link {
  color: #48c5a3;
}
.article-sub-nav {
  .sub-nav-item {
    display: flex;
    justify-content: center;
    align-content: center;
    padding: 10px;
    position: relative;
    span {
      cursor: pointer;
      &:hover {
        color: #48c5a3;
      }
    }
  }
  .con{
      width: 86px;
      height: 34px;
      // background: rgba(72, 197, 163, 0.16863);
      border-radius: 4px;
      margin: 0 auto;
      line-height: 34px;
      text-align: center;
      font-weight: 600;
      color: #48c5a3;
      span{
        background: rgba(72, 197, 163, 0.16863);
        border-radius: 4px;
        margin: 0 auto;
        line-height: 34px;
        text-align: center;
        font-weight: 600;
        color: #48c5a3;
      }
  }
}

/* 分页 */
.app-pagination {
  margin: 40px auto;
  text-align: center;
  li {
    display: inline-block;
    margin: 0 6px;
    a {
      padding: 5px 10px;
      display: inline-block;
      color: #626262;
      background: #fff;
      border-radius: 2px;
      border: 1px solid #ddd;
    }
  }
}
.app-pagination li .active-link,
.app-pagination li.active a,
.app-pagination li a:hover {
  color: #fff;
  border: 1px solid #48c5a3;
  background: #48c5a3;
}
/* 右侧视频推荐 */
.mt-10 {
  margin-top: 10px;
}
.line {
  width: 100%;
  height: 1px;
  background-color: #eee;
}
.article-newask {
  .article-newask-list {
    .list-item {
      img {
        width: 90px;
        height: 62px;
        border-radius: 4px;
        margin-right: 14px;
      }
      .article-newask-flex {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
      }
      .article-newask-list-title {
        font-size: 14px;
        font-weight: 600;
        line-height: 22px;
        display: flex;
        align-items: flex-start;
        .text {
          width: 210px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          display: inline-block;
        }
      }
      .article-newask-list-footer {
        font-size: 12px;
        font-weight: 400;
        color: #999;
        line-height: 17px;
        display: flex;
        align-items: center;
      }
    }
  }
}
.article-newask-list {
  .list-item {
    .article-newask-list-footer {
      font-size: 12px;
      font-weight: 400;
      color: #999;
      line-height: 17px;
      display: flex;
      align-items: center;
    }
  }
}
.list-item {
  .article-newask-list-footer {
    span {
      &:last-of-type {
        margin-left: 30px;
      }
    }
  }
}
</style>